#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>

struct ListNode* reverseList(struct ListNode* head)
{
    struct ListNode* prev = NULL;
    struct ListNode* mid = NULL;
    struct ListNode* las = head;
    while (las)
    {
        mid = las;
        las = las->next;
        mid->next = prev;
        prev = mid;
    }
    return mid;
}

int main()
{
    
	return 0;
}